package org.quickserver.net.Shengshan.control;

import org.quickserver.net.model.GB268753QN;
import org.quickserver.net.model.GBServerData;
import org.quickserver.net.model.GBServerDataAll;
import org.quickserver.net.model.ShengShanServerData;
import org.quickserver.net.server.ClientHandler;
import org.quickserver.util.data.dataProcessing;

import java.util.Map;

public class SS253 {
    public SS253()
    {
    }
    public static Map Shengshan253OBJ(ClientHandler handler, String strs[])
    {
        ShengShanServerData ec = (ShengShanServerData)handler.getClientData();
        String uStr[] = dataProcessing.strsToStrs(strs, 0, 15);
        byte aa[]=dataProcessing.hexStringsToByteArray(uStr);
        String uniqueCode = dataProcessing.gB18030ByteArrayToUtf8String(aa);
        uniqueCode = uniqueCode.trim();
        ec.setUniqueCode(uniqueCode);
        Object obj = GBServerDataAll.devMap.get(uniqueCode);
        if(obj != null){
            ec.setDevType(obj.toString());
            GBServerDataAll.handlerMap.put(uniqueCode, handler);
        }
        try {
            //Map<String,Object> map=new sendClient().QNSend90(uniqueCode,new Date());
            //System.out.println(map);
        }catch (Exception e){
            e.printStackTrace();
        }
        return null;
    }
}
